#include "stdafx.h"
#include "RightWnd.h"

CRightWnd::CRightWnd()
{
	mpInspectorWnd = new CInspectorWnd();
}

CRightWnd::~CRightWnd()
{
	SafeRelease(mpInspectorWnd);
}

void CRightWnd::initWnd()
{
	mini::ui::CGuiPlugin* pGuiPlugin = mini::GETPLUGIN(mini::ui::CGuiPlugin, mini::PluginType::GUI);
	pGuiPlugin->initWnd(this, "resource/Editor/Gui/RightWnd.xml");

	mpTableWnd = dynamic_cast<mini::ui::CTableWnd*>(findChildWnd("tableWnd"));
	pGuiPlugin->initWnd(mpInspectorWnd, "resource/Editor/Gui/InspectorWnd.xml");

	mpTableWnd->addToTable(mpInspectorWnd, "Inspector");

	mpInspectorWnd->initWnd();

}

CInspectorWnd* CRightWnd::getInspectorWnd()
{
	return mpInspectorWnd;
}

